body {
    background-color: #f8f9fb;
}

.aside {
    position: fixed;
    top: 0;
    left: 0;
    width: 180px;
    height: 100%;
    background-color: #2f4050;

    .profile {
        padding: 25px;
        text-align: center;
        background-color: #243443;

        .avatar {
            width: 80px;
            height: 80px;
            border: 3px solid rgba(255, 255, 255, .3);
            border-radius: 50%;
            object-fit: cover;
        }

        .name {
            color: #a9b0c2;
            font-size: 16px;
        }
    }

    .nav {
        padding: 10px 0;

        a {
            color: #a9b0c2;
            display: block;
            padding: 10px 20px;

            i:first-child {
                width: 14px;
                margin-right: 10px;
                font-size: 14px;
                line-height: 16px;
            }

            &:hover,
            &:focus {
                color: #f6f6f6;
                background-color: #213140;
                text-decoration: none;
            }


        }

        .active>a {
            color: #f6f6f6;
            background-color: #243443;
        }


        .fa-angle-right {
            float: right;
            transition: transform .2s;
            transform: rotate(90deg);
            font-size: 16px;
            line-height: 20px;
        }

        .collapsed {

            .fa-angle-right {
                float: right;
                transform: rotate(0);
            }
        }

        a+ul {
            overflow: hidden;
            padding: 0;
            list-style: none;
            background-color: #243443;
            box-shadow: inset 0 1px 3px #111e29;
            font-size: .9em;

            li:first-child {
                margin-top: 8px;
            }

            a {
                padding-left: 30px;
            }
        }

    }
}

.main {
    position: relative;
    overflow: hidden;
    min-width: 844px;
    min-height: 100vh;
    padding: 70px 5px 20px 185px;

    .navbar {
        position: fixed;
        z-index: 10;
        top: 0;
        right: 0;
        left: 180px;
        padding: 0 15px 0 10px;
        border: 0;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        background-color: #fff;

        .navbar-btn {
            padding: 10px 12px;
            color: #444;
            border: 0;
        }

        i {
            margin-right: 4px;
            font-size: .8em;
        }

        a {
            color: #40586d;
        }
    }

    // 所有文章
    .page-title {
        overflow: hidden;
        margin-bottom: 20px;

        h1 {
            display: inline-block;
            margin: 0;
            font-size: 24px;
            font-weight: 400;
        }

        .btn-primary {
            margin-left: 5px;
            vertical-align: bottom;
        }
    }

    .page-action {
        overflow: hidden;
        margin-bottom: 10px;

        .form-inline {
            display: inline-block;
        }

        .pagination {
            margin: 0;
        }
    }

    table {
        background-color: #fff;

        th {
            border-bottom: 1px;
            font-weight: 400;
        }
    }

    // 写文章
    label {
        color: #555;
        font-weight: normal;
    }

    // 分类目录
    form {

        h2 {
            margin-top: 5px;
            margin-bottom: 15px;
            font-size: 17px;
            font-weight: 400;
        }
    }


    // 用户
    .form-image {
        position: relative;
        background-color: #fff;

        input {
            display: none;
        }

        img {
            max-width: 150px;
        }

        i {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            transition: opacity .3s;
            text-align: center;
            opacity: 0;
            background: #c0c0c0;
            font-size: 2em;
        }

        i::before {
            position: absolute;
            top: 50%;
            left: 50%;
            margin-top: -14px;
            margin-left: -14px;
        }

        &:hover i {
            opacity: .6;
        }
    }

    .container-fluid {


        td {
            vertical-align: middle;

            .avatar {
                width: 40px;
                border-radius: 50%;
            }

            // 图片轮播
            .slide {
                max-height: 80px;
            }
        }


        // 网站设置
        .form-horizontal {
            margin-top: 50px;
        }


    }


}

// 登录页面
.login {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #2f4050;

    .login-wrap {
        position: relative;
        max-width: 380px;
        margin: 180px auto;
        padding: 100px 40px 40px;
        border-radius: 4px;
        background-color: #fff;

        .avatar {

            position: absolute;
            top: -60px;
            left: 50%;
            overflow: hidden;
            width: 140px;
            height: 140px;
            margin-left: -70px;
            border: 10px solid #fff;
            border-radius: 50%;
            box-shadow: 0 1px 5px #ccc;
        }
    }
}